$("#new_option_type").html('<%= escape_javascript(render template: "spree/admin/option_types/new", formats: [:html], handlers: [:erb]) %>');
$("#new_option_type_link").parent().hide();
